﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace YShop.Application.Contracts.Shop
{
    /// <summary>
    /// 产品
    /// </summary>
    public class ProductDto:BaseEntityDto
    {
        /// <summary>
        /// 产品编号
        /// </summary>
        public string Code { get; set; }
        /// <summary>
        /// 产品名称
        /// </summary>
        public string Name { get; set; }
        /// <summary>
        /// 子名称
        /// </summary>
        public string SubName { get; set; }
        /// <summary>
        /// 上架
        /// </summary>
        public bool Saleable { get; set; }
        /// <summary>
        /// 产品选项
        /// 示例：{颜色:[黑、红、绿],尺寸:[S、M、L、XL、XXL]}
        /// </summary>
        public string Options { get; set; }
        /// <summary>
        /// 产品描述（富文本）
        /// </summary>
        public string Describe { get; set; }
        /// <summary>
        /// 产品明细(SKU)
        /// </summary>
        public List<ProductDetailDto> Details { get; set; }
    }
}
